import cv2
video_full_path="rtmp://127.0.0.1:1935/live/yolov3"
cap = cv2.VideoCapture(video_full_path) 
print (cap.isOpened()) 
frame_count = 1
success = True
while(success): 
    success, frame = cap.read() 
  
    params = [] 
    #params.append(cv.CV_IMWRITE_PXM_BINARY) 
    params.append(1) 
    # Display the resulting image
    cv2.imshow('Video', frame)

    # Hit 'q' on the keyboard to quit!
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
  
    frame_count = frame_count + 1
  
cap.release() 
